﻿using System;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using YJKRoomInspection.ShowDataForm;

namespace YJKSparseDisOfRoom.ControlLayer
{
	internal class LevelGeter
	{
		internal List<Level> GetSelectLevels(Autodesk.Revit.DB.Document inputDoc)
		{
			SelectFloorManager selectFloorManager = new SelectFloorManager();
			selectFloorManager.IfEvacuationDistance = true;
			List<Level> list = new List<Level>();
			bool flag = selectFloorManager.SelectFloorLevels(inputDoc, false);
			list = selectFloorManager.m_AllLevels;
			if (!flag || list.Count == 0)
			{
				list = new List<Level>();
			}
			return list;
		}
	}
}
